package com.redsoft.epip.constant;

public enum BusiEnum {
	CLEAN(0, "清洗", "清洗费"),
	REPAIR(1, "维修", "维修费"),
	YBLY(2, "延保维修", "维修费"),
	INSTALL(3, "安装", "安装费"),
	YBYY(4, "延保预约", "服务费");
	
	private int busiType;
	
	private String busiDesc;
	
	private String busiFeeName;

	public int getBusiType() {
		return busiType;
	}

	public void setBusiType(int busiType) {
		this.busiType = busiType;
	}

	public String getBusiDesc() {
		return busiDesc;
	}

	public void setBusiDesc(String busiDesc) {
		this.busiDesc = busiDesc;
	}

	public String getBusiFeeName() {
		return busiFeeName;
	}

	public void setBusiFeeName(String busiFeeName) {
		this.busiFeeName = busiFeeName;
	}

	private BusiEnum(int busiType, String busiDesc, String busiFeeName) {
		this.busiType = busiType;
		this.busiDesc = busiDesc;
		this.busiFeeName = busiFeeName;
	}
	
    public static  String getBusiDescValue(int type) {  
        for (BusiEnum busi : BusiEnum.values()) {  
            if (busi.getBusiType() == type) {  
                return busi.getBusiDesc();  
            }  
        }  
        return "";  
    }
    
    public static  String getBusiFeeNameValue(int type) {  
        for (BusiEnum busi : BusiEnum.values()) {  
            if (busi.getBusiType() == type) {  
                return busi.getBusiFeeName();
            }  
        }  
        return "";  
    }
}
